<style>
.win {
	color: Green;
}
.lost {
	color: Fuchsia;
}
.btnplus {height:12pt; width:12pt; margin:0; border:1px; background:#6363A6; color:white; font:10pt Tahoma;cursor: pointer;}
.btnmin {height:12pt; width:12pt; margin:0; border:1px; background:#964A6E; color:white; font:10pt Tahoma;cursor: pointer;}
.btnchoice {
	padding: 2pt 2pt 2pt 2pt;
	border: 1pt solid #aaa;
	cursor: pointer;
}
.btnchoiced {
	padding: 2pt 2pt 2pt 2pt;
	border: 1px solid Lime;
	background-color: Green;
	color: white;
}
.rate {font-weight:bold; color:red; font-family:Tahoma}
.td1red {
	background-color:#DFF9FF;color:red;font-weight:bold;text-align:center;
}
.td1blue {
	background-color:#DFF9FF;color:blue;font-weight:bold;text-align:center;
}
.td1green {
	background-color:#DFF9FF;color:green;font-weight:bold;text-align:center;
}
</style>

<script src="js_3d/showRateRecord.js"></script>
<div id="divRateRecord"></div>
{menuList}
<br>
<table width="69%" border=0 cellpadding=0 cellspacing=0>
<tr><td width="62%">
<span id="hktime"></span>，<span id="countdownstr"></span>
</td><td width="22%">
</td></tr>
</table>


<table cellSpacing="1" cellPadding="3" width="860" border="0" bgcolor="#6A99A6">
<tr bgcolor="#C0D6EB">
  <td width="100" align="center"><a href="op.php?op=admin&fp=now5_8&lotto_id={lotto_id}&select={select_id}&disk={disk_id}">三全中</a></td>
  <td width="245" align="center" colspan="2"><a href="op.php?op=admin&fp=now5_9&lotto_id={lotto_id}&select={select_id}&disk={disk_id}">三中二</a></td>
  <td width="114" align="center"><a href="op.php?op=admin&fp=now5_7&lotto_id={lotto_id}&select={select_id}&disk={disk_id}">二全中</a></td>
  <td width="239" align="center" colspan="2"><a href="op.php?op=admin&fp=now5_10&lotto_id={lotto_id}&select={select_id}&disk={disk_id}">二中特</a></td>
  <td width="103" align="center"><a href="op.php?op=admin&fp=now5_11&lotto_id={lotto_id}&select={select_id}&disk={disk_id}">特串</a></td>
</tr>
<tr>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">最高</font>&nbsp;<b><font color="#FF0000">{r8_hi}</font></b>
  <br><font color="#007C00">最低</font>&nbsp;<b><font color="#FF0000">{r8_lo}</font>
  <br><input type=button onclick=ratediff(8,'0',-5) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(8,'0',5) value=+ class=btnplus></td>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">中二A</font>&nbsp;<b><font color="#FF0000">{r9_1}</font></b>
  <br><input type=button onclick=ratediff(9,'1',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(9,'1',1) value=+ class=btnplus>
  <br><font color="#007C00">中三A</font>&nbsp;<b><font color="#FF0000">{r9_2}</font></b>
  <br><input type=button onclick=ratediff(9,'2',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(9,'2',1) value=+ class=btnplus></td>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">中二B</font>&nbsp;<b><font color="#FF0000">{r33_1}</font></b>
  <br><input type=button onclick=ratediff(33,'1',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(33,'1',1) value=+ class=btnplus>
  <br><font color="#007C00">中三B</font>&nbsp;<b><font color="#FF0000">{r33_2}</font></b>
  <br><input type=button onclick=ratediff(33,'2',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(33,'2',1) value=+ class=btnplus></td>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">二全中</font>&nbsp;<b><font color="#FF0000">{r7_1}</font></b>
  <br><input type=button onclick=ratediff(7,'1',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(7,'1',1) value=+ class=btnplus></td>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">中特A</font>&nbsp;<b><font color="#FF0000">{r10_1}</font></b>
  <br><input type=button onclick=ratediff(10,'1',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(10,'1',1) value=+ class=btnplus>
  <br><font color="#007C00">中二A</font>&nbsp;<b><font color="#FF0000">{r10_2}</font></b>
  <br><input type=button onclick=ratediff(10,'2',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(10,'2',1) value=+ class=btnplus></td>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">中特B</font>&nbsp;<b><font color="#FF0000">{r32_1}</font></b>
  <br><input type=button onclick=ratediff(32,'1',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(32,'1',1) value=+ class=btnplus>
  <br><font color="#007C00">中二B</font>&nbsp;<b><font color="#FF0000">{r32_2}</font></b>
  <br><input type=button onclick=ratediff(32,'2',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(32,'2',1) value=+ class=btnplus></td>
  <td align="center" bgcolor="#E7EBEF"><font color="#007C00">特串</font>&nbsp;<b><font color="#FF0000">{r11_1}</font></b>
  <br><input type=button onclick=ratediff(11,'1',-1) value=- class=btnmin>&nbsp;<input type=button onclick=ratediff(11,'1',1) value=+ class=btnplus></td>
</tr>
<tr>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt} &dt2={dt} &bettype=8&page=-1&order=0">{money08}</a></td>
  <td align="center" bgcolor="#FCFCD8" colspan="2"><a href="op.php?op=agent&fp=betlist1&dt1={dt} &dt2={dt} &bettype=55&page=-1&order=0">{money09}</a></td>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt} &dt2={dt} &bettype=7&page=-1&order=0">{money07}</a></td>
  <td align="center" bgcolor="#FCFCD8" colspan="2"><a href="op.php?op=agent&fp=betlist1&dt1={dt} &dt2={dt} &bettype=66&page=-1&order=0">{money10}</a></td>
  <td align="center" bgcolor="#FCFCD8"><a href="op.php?op=agent&fp=betlist1&dt1={dt} &dt2={dt} &bettype=11&page=-1&order=0">{money11}</a></td>
</tr>
<tr valign="top" align="center">
  <td bgcolor="#FFFFFF">
    <table border="0" width="90%" cellspacing="0" cellpadding="0">{list8}</table>
  </td>
  <td bgcolor="#FFFFFF" colspan="2">
    <table border="0" width="90%" cellspacing="0" cellpadding="0">{list9}</table>
  </td>
  <td bgcolor="#FFFFFF">
    <table border="0" width="80%" cellspacing="0" cellpadding="0">{list7}</table>
  </td>
  <td bgcolor="#FFFFFF" colspan="2">
    <table border="0" width="80%" cellspacing="0" cellpadding="0">{list10}</table>
  </td>
  <td bgcolor="#FFFFFF">
    <table border="0" width="80%" cellspacing="0" cellpadding="0">{list11}</table>
  </td>
</tr>
</table>

<p>
<input type=button value="重新整理" onclick='location.reload()'>
</p>


<script>
var _id = {lotto_id};
var XH1 = new ActiveXObject("Microsoft.XMLHTTP");
var now = new Date(1000 * {phptime});
nowdate();
function nowdate()
{
    document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds()+"</b>");
    now.setTime(now.getTime() + 1000);
    setTimeout("nowdate()",1000);
}

var timestap = {timestap};
function countdown()
{
    if (timestap >= 0) {
      timediff = timestap;
      days = Math.floor(timediff / (60 * 60 * 24)); 
    	timediff -= days * (60 * 60 * 24);
    	hours = Math.floor(timediff / (60 * 60));
    	timediff -= hours * (60 * 60);	
    	mins = Math.floor(timediff / (60));
    	timediff -= mins * (60);	
    	secs = Math.floor(timediff);
        
        str = "距离截止下注时间还有 ";
        if (days > 0 ) str += "<b>" + days + "</b> 天 ";
        if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
        if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
        str += "<b>" + secs + "</b> 秒 ";
        countdownstr.innerHTML =  str;
        setTimeout("countdown()",1000)
        timestap-=1;
        if (timestap==0) {
            location.reload();
        }
    } else {
        countdownstr.innerHTML =  "<font color=red><b>已经截止下注！</b></font>";
    }
}
countdown();

function ratediff(btype, num, rate)
{
    XH1.open("POST", "op.php?op=admin&fp=ratediff&id="+_id+"&bettype="+btype+"&number="+num+"&rate="+rate+"&pagename=0&method=0",false); 
    try{XH1.send("");}catch(E){}
	setTimeout("location.href='op.php?op=admin&fp=now5'",10);
}

</script>   